offset

abstract fun offset(vec: V): Double(source)

Get the offset of a point from this line.

The offset is the signed distance from the point to the line, which can be positive, negative, or zero depending on whether the point is on the positive side, negative side, or exactly on the line.

Return

The signed distance from the point to the line.

Parameters

vec

The point to measure the offset from.